<script>
	$(function() {
		$( "button, input:submit, a", ".demo" ).button();
		$( "a", ".demo" ).click(function() { return true; });
	});
</script>
<% @user.password = @user.password_confirmation = nil %>

<%= error_messages_for :user %>

<% form_for @user, :url => users_path, :html => {:class => "wufoo topLabel page"} do |f| %>
	
	<div class="info"> 
		<h2>Registro de Usuario (Los campos marcados con * son Obligatorios)</h2>
	</div>

	<li id="foli1" 		class="     ">
		<label class="desc" id="title1" for="Field1">
			Nombres
		</label>
		<span>
			<%= f.text_field :name, :class => "field text", :size => "30", :tabindex => "1"%>
			<label for="name">Primer Nombre
			<span id="req_1" class="req">*</span>
			</label>

		</span>
		<span>
			<%= f.text_field :name2, :class => "field text", :size => "30", :tabindex => "2"%>
			<label for="name2l">Segundo Nombre</label>
		</span>
	</li>

	<li id="foli1" 		class="     ">
		<label class="desc" id="title1" for="Field1">
			Apellidos
		</label>
		<span>
			<%= f.text_field :lastname, :class => "field text", :size => "30", :tabindex => "3"%>
			<label for="name">Primer Apellido
			<span id="req_1" class="req">*</span>
			</label>

		</span>
		<span>
			<%= f.text_field :lastname2, :class => "field text", :size => "30", :tabindex => "4"%>
			<label for="name2l">Segundo Apellido</label>
		</span>
	</li>
	
	<li id="foli1" 		class="     ">
		<label class="desc" id="title1" for="login">
			Login
		<span id="req_1" class="req">*</span>
		
		&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; &nbsp;
			Email
		<span id="req_1" class="req">*</span>
		</label>
		<span>
			<%= f.text_field :login, :class => "field text", :size => "30", :tabindex => "5"%>			
		</span>

		<span>
			<%= f.text_field :email, :class => "field text", :size => "30", :tabindex => "6"%>			
		</span>
	</li>

	<li id="foli1" 		class="     ">
		<label class="desc" id="title1" for="Field1">
			Password
			<span id="req_1" class="req">*</span>
		</label>
		<span>
			<%= f.password_field :password, :class => "field text", :size => "30", :tabindex => "7"%>
			<label for="name">Password</label>
		</span>
		<span>
			<%= f.password_field :password_confirmation, :class => "field text", :size => "30", :tabindex => "8"%>
			<label for="name2l">Reescribe tu password</label>
		</span>
	</li>

<div class="demo"><%= link_to "Cancelar", :controller => "sessions", :action => "new" %> <%= submit_tag "Unete!" %></div>
<% end -%>